<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="sendDcsAgainClick()">异常重发DCS</button>
                <button class="layui-btn" ng-click="sendSapAgainClick()">异常重发SAP</button>
                <button class="layui-btn" ng-click="sendCrmAgainClick()">异常重发CRM</button>
                <button class="layui-btn" ng-click="updateDcsSuccessClick()">调整DCS成功</button>
                <button class="layui-btn" ng-click="updateSapSuccessClick()">调整SAP成功</button>
                <button class="layui-btn" ng-click="updateCrmSuccessClick()">调整CRM成功</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <button class="layui-btn" ng-click="moreClick()">更多</button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh"
                   ng-click="refreshClick()" refresh></i>
            </div>
        </div>

        <div class="otherForm" style="width: 96%" ng-show="otherForm">
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>组板单号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.gbno" placeholder="组板单号输入框">
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>发送DCS状态</div>
                        <div>
                            <ui-select ng-model="dropDownListDefault.dcsStatusValue">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices
                                        repeat="operationHandoverOrderStatus in dropDownList.dcsDropDown">
                                    <span ng-bind="operationHandoverOrderStatus.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>发送SAP状态</div>
                        <div>
                            <ui-select ng-model="dropDownListDefault.sapStatusValue">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices
                                        repeat="operationHandoverOrderStatus in dropDownList.sapDropDown">
                                    <span ng-bind="operationHandoverOrderStatus.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>CRM状态</div>
                        <div>
                            <ui-select ng-model="dropDownListDefault.crmStatusValue">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices
                                        repeat="operationHandoverOrderStatus in dropDownList.crmDropDown">
                                    <span ng-bind="operationHandoverOrderStatus.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>车架号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.vin" placeholder="车架号输入框">
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>订单号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.orderno" placeholder="订单号输入框">
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>发送时间</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd"
                                   ng-model="search.startTime" ng-click="Tools.modelAssignment($event,this)"
                                   autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.endTime"
                                   ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>

        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table minScreen listTable"
                   ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_) != -1">
                <tbody>
                <tr>
                    <th>
                        <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                        <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                            <i class="layui-icon"></i>
                        </div>
                    </th>
                    <th>序号</th>
                    <th>组板号</th>
                    <th>订单号</th>
                    <th>订单行</th>
                    <th>交接单号</th>
                    <th>车架号</th>
                    <th>物料编码</th>
                    <th>车辆颜色</th>
                    <th>车辆配置</th>
                    <th>发运仓库</th>
                    <th>发运类型</th>
                    <th>发送时间</th>
                    <th>DCS传送状态</th>
                    <th>DCS返回消息</th>
                    <th>SAP传送状态</th>
                    <th>SAP返回消息</th>
                    <th>CRM传送状态</th>
                    <th>CRM返回消息</th>
                </tr>
                <tr ng-repeat="handover in HandoverOrderList" repeat-finish=""
                    ng-click="Tools.initTableClick($event)" id="{{handover.dataId}}">
                    <td>
                        <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary"/>
                        <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                            <i class="layui-icon"></i>
                        </div>
                    </td>
                    <td ng-bind="$index+1"></td>
                    <td ng-bind="handover.gbno"></td>
                    <td ng-bind="handover.vbeln"></td>
                    <td ng-bind="handover.posnr"></td>
                    <td ng-bind="handover.zdoc"></td>
                    <td ng-bind="handover.sernr"></td>
                    <td ng-bind="handover.matnr"></td>
                    <td ng-bind="handover.zcol"></td>
                    <td ng-bind="handover.zset"></td>
                    <td ng-bind="handover.lgort"></td>
                    <td ng-bind="handover.zaction | cFilter"></td>
                    <td ng-bind="handover.gmtUpdate"></td>
                    <td ng-bind="handover.finalDcsStatus | outOfStorageOperationSendStatusFilter"></td>
                    <td ng-bind="handover.resultMsgDcs"></td>
                    <td ng-bind="handover.finalSapStatus | outOfStorageOperationSendStatusFilter"></td>
                    <td ng-bind="handover.resultMsgSap"></td>
                    <td ng-bind="handover.finalCrmStatus | outOfStorageOperationSendStatusFilter"></td>
                    <td ng-bind="handover.resultMsgCrm"></td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>